From: Dallas Strouse Date: Fri, 11 Aug 2023 15:20:53 +0000 (+0000) Subject: util: Export trySpawn() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~112 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e18b4d0b20eab6bef677832b96d33bcc540e19a;p=gnome-shell.git util: Export trySpawn() It was private before, and so any users of it (including the Background Apps menu) would fail to utilize it, making apps fail to get told to shut down from the Background Apps menu. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6893 Part-of: --- diff --git a/js/misc/util.js b/js/misc/util.js index 971c6306f..0201fd112 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -117,7 +117,7 @@ export function spawnApp(argv) { * Runs argv in the background. If launching argv fails, * this will throw an error. */ -function trySpawn(argv) { +export function trySpawn(argv) { let success_, pid; try { [success_, pid] = GLib.spawn_async(